<?php
 
/*Author: Panos Sakkos */

class Category
{
	var $id;
	var $name;
	var $owner;
	var $entity_ids;
	var $entities_count;
	var $private;
	var $approved;
	var $attributes;

	function __construct()
	{
		$this->id = -1;
		$this->name = "";
		$this->owner = "";		
		$this->entities_count = 0;
		$this->private = "";
		$this->approved = 0;
	}

	/* Mutators */

	function SetId($id)
	{
		$this->id = $id;
	}

	function SetName($name)
	{
		$this->name = $name;
	}

	function SetOwner($owner)
	{
		$this->owner = $owner;
	}

	function SetEntityIds($entity_ids)
	{
		$this->entity_ids = $entity_ids;
	}

	function SetEntitiesCount($entities_count)
	{
		$this->entities_count = $entities_count;
	}

	function SetPrivacy($privacy)
	{
		$this->private = $privacy;
	}

	function SetApprovement($value)
	{
		$this->approved = $value;
	}

	function SetAttributes($attributes)
	{
		$this->attributes = $attributes;
	}

	/* Accessors */

	function GetId()
	{
		return $this->id;
	}

	function IsPrivate()
	{
		return $this->private;
	}


	function GetName()
	{
		return $this->name;
	}

	function GetOwner()
	{
		return $this->owner;
	}

	function GetEntityIds()
	{
		return $this->entity_ids;
	}

	function AddEntity($entity)
	{
		$entity_ids[$entities_count] = $entity;
		$entities_count++;
	}

	function GetApproved()
	{
		return $this->approved;
	}

	function GetAttributes()
	{
		return $this->attributes;
	}
}

?>
